package cn.itcast.service.stat.impl;

import cn.itcast.dao.stat.StatDao;
import cn.itcast.service.stat.StatService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service
public class StatServiceImpl implements StatService {

    @Autowired
    private StatDao statDao;

    @Override
    public List<Map<String, Object>> getFactoryData() {
        return statDao.getFactoryData();
    }

    @Override
    public List<Map<String, Object>> productSale(int top) {
        return statDao.productSale(top);
    }

    @Override
    public List<Map<String, Object>> online() {
        return statDao.online();
    }

    /**
     * 区域厂家统计
     *
     * @param top
     * @return
     */
    @Override
    public List<Map<String, Object>> areaFactory(int top) {

        return statDao.areaFactory(top);
    }
}
